Containers
A container is an object that contains one or more objects or properties. In a reference, the container specifies where to find an object or a property. To specify a container, use the wordof
orin
, as in
word 5 of paragraph 10and
character 2 in word 12whereword 5
is contained in a paragraph object andcharacter 2
is contained in a word object.A container can be an object or a series of objects. In a series, list the smallest object first, followed by the larger objects that contain it. Use the word
of
orin
to separate each object from its larger, containing object. For example, in
word 5 of paragraph 10 of document "Report"word 5
is contained by the larger object,paragraph 10
;paragraph 10
is contained by the larger objectdocument "Report".
You can also use the possessive form (
's
) to specify containers. If you use the possessive form, list the container before the object it contains. For example, in
first window's namethe container isfirst window
. The object it contains is a Name property.All properties and elements have containers. The previous example
specified the Name property of a window, which is contained in a window object. Similarly, the following example specifies the Style property, which
is contained in a character object.
style of first character